package com.adinnet.admin.school.service;

import com.adinnet.admin.classs.model.vo.ClassCreateReq;
import com.adinnet.admin.school.model.School;
import com.adinnet.admin.school.model.vo.SchoolResp;
import com.adinnet.admin.system.model.vo.SysUserInfo;
import com.adinnet.core.JsonResult;
import com.adinnet.core.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 校区 服务类
 * </p>
 *
 * @author liukp
 * @since 2020-12-05
 */
public interface SchoolService extends IService<School> {

    List<School> getListByUserRole(SysUserInfo sysUserInfo);

    List<School> getListByOrganizationId(Integer organizationId,SysUserInfo sysUserInfo);

    PageResult<SchoolResp> schoolList(String keyword, Integer page, Integer limit);

    JsonResult delete(Integer schoolId);

    boolean addOrUpdate(ClassCreateReq classCreateReq, SysUserInfo sysUserInfo, HttpServletRequest request);
}
